home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13036 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: newsfeed.internetmci.com!iol!usenet
  2. From: David Byrden <goyra@iol.ie>
  3. Newsgroups: comp.os.ms-windows.programmer.graphics,comp.lang.c++
  4. Subject: Re: Drawing from any procedure
  5. Date: 23 Mar 1996 02:54:13 GMT
  6. Organization: Ireland On-Line
  7. Message-ID: <4ivp4l$daf@nuacht.iol.ie>
  8. References: <4iuni1$oep@lily.csv.warwick.ac.uk>
  9. NNTP-Posting-Host: dialup-318.dublin.iol.ie
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.22KIT (Windows; I; 16bit)
  14.  
  15. esuvx@csv.warwick.ac.uk (Adge) wrote:
  16.  
  17. >I am programming in ms Visual C++ v.4.0 under Win95, and am trying to 
  18. >persuade it to allow me to draw graphics to a window from a procedure other
  19. >than OnPaint or OnDraw.
  20. >
  21. >I have tried using CPaintDC(this); , but this gives an access violation.
  22.  
  23.  
  24.          First, you must tell us this; is your program multithreaded, and 
  25. are you trying to draw in a thread other than the one that is allowed use 
  26. MFC? I don't have the answer for you, but I know we need that information.
  27.  
  28.  
  29.                         David
  30.  
  31.  
  32.